package cn.wolfcode.trip.base.service;

import cn.wolfcode.trip.base.domain.Travel;
import cn.wolfcode.trip.base.domain.TravelContent;
import cn.wolfcode.trip.base.query.SearchQueryObject;
import cn.wolfcode.trip.base.query.TravelQueryObject;
import com.github.pagehelper.PageInfo;

public interface ITravelService {

    PageInfo<Travel> query(TravelQueryObject qo);

    PageInfo<Travel> queryReasonable(TravelQueryObject qo);

    void updateState(Travel travel);

    void saveOrUpdate(Travel travel);

    Travel selectTravelById(Long id);

    TravelContent selectTravelContentById(Long id);

    PageInfo query(SearchQueryObject qo);

    int queryForCount(SearchQueryObject qo);

    void updateBrowseNumById(Long id);
}
